
import { Table } from 'antd';


const dataSource = [
    {
        key: '1',
        shangping: '胡彦斌',
        dadanwei: '箱',
        dadanjia: 100,
        xiaodanwei: '瓶',
        xiaodanjia: 3,
        kucun: '222'

    },
    {
        key: '2',
        shangping: '胡彦斌',
        dadanwei: '箱',
        dadanjia: 10,
        xiaodanwei: '件',
        xiaodanjia: 3,
        kucun: '222'
    },
];

const columns = [
    {
        title: '商品名称',
        dataIndex: 'shangping',
        key: 'shangping',
        width: 150,
    },
    {
        title: '大单位',
        dataIndex: 'dadanwei',
        key: 'dadanwei',
        width: 150,
    },
    {
        title: '大单位单价',
        dataIndex: 'dadanjia',
        key: 'dadanjia',
        width: 150,
    },
    {
        title: '小单位',
        dataIndex: 'xiaodanwei',
        key: 'xiaodanwei',
        width: 150,
    },

    {
        title: '单价/小单位',
        dataIndex: 'xiaodanjia',
        key: 'xiaodanjia',
        width: 150,
    },
    {
        title: '现有库存',
        dataIndex: 'kucun',
        key: 'kucun',
        width: 150,
    },
    {
        title: '操作',
        dataIndex: 'caozuo',
        key: 'caozuo',
        width: 150,
        render: (text, record) => {
            return <a href="#!">添加</a>
        }
    },
];
const AddOrderTabList = () => {

    return (
        <>
            

            <Table ellipsis dataSource={dataSource} columns={columns} />
            <>
            {/* 分页 */}
            </>
        </>
    )


}


export default AddOrderTabList;